package com.example.cloud.service.personal;

import com.example.cloud.model.dto.Result;
import com.example.cloud.model.personal.AttendanceRecord;
import com.example.cloud.model.system.User;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

/**
 * Created by wangtao on 2018/5/22.
 */
public interface AttendanceService {
    Result doSave(AttendanceRecord record) throws ParseException;
    void doRelaxation(AttendanceRecord record);
    List checkAgree(List ids);
    void doAgree(List ids);
    boolean checkRefuse(Long id);
    void doRefuse(Long id, String denialReason);
    List<User> getHealthcare(List<Long> ids, String datetime);
    List<User> getHealthcare(List<Long> ids, String datetime, int type, int process) throws ParseException;
    List<List<AttendanceRecord>> findAllByCurrentDate(Date date, User user, Long userId);
    void doDelete(List<Long> ids);
}
